package com.itheima.dao;

import com.github.pagehelper.Page;

import com.itheima.pojo.DateSetmeal;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    Page<Member> findPage(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();

    List<Member> findMemberById(Integer[] memberIds);

    List<String> findByDeptById(Integer memberId);

    List<Map> getManagers();

    String findHealthManagerById(Integer healthManagerId);

    List<DateSetmeal> findByDate(Map map);

    List<DateSetmeal> findByOid(Map<String, Object> map);

    List<Map<String, Object>> findAgeByBirthday();

    Integer findSetMealIdsByMemberId(Integer id);
}
